<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

$jige = 75;

$css = 80;
$Js = 75;
$wangye = 70;
$avg = ($css + $Js + $wangye)/3;
echo "平均分的及格线=$jige</br>";
echo "样式表=$css</br>";
echo "网页设计=$wangye</br>";
echo "JS=$Js</br>";
echo "你的平均分=$avg</br>";
echo "你的分数:";

if ($avg >=$jige){
    echo "<font style='color:green'>及格</font>";   }
else {
    echo "<font style='color:red'>不及格</font>";
    
}